package com.dongdongqiang.common.base;

import org.apache.ibatis.annotations.Param;

/**
 * Created by ZZB on 2017/9/4.
 */
public interface BaseMapper<T extends  BaseEntity> {
    int insert(T t);
    int update(T t);
    int delete(@Param("id") String id);
    int recovery(@Param("id") String id,@Param("operator") String operator );
    int trash(@Param("id") String id,@Param("operator") String operator);
    T get(@Param("id")String id);
}
